public class ques3 {
	public static void main(String args[]) {
		int i,j=1;
		double add = 0.0;
		for (i=1;i<=20;i++) {
			j*=i;
			add += 1.0/j;
		}
		System.out.println(add);
	}
}
